package com.scf.fruit.business.user.bo;

import com.scf.fruit.user.WxUserInfoDto;
import com.scf.fruit.user.WxUserInfoService;
import com.scf.fruit.util.ResponseVo;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author : 孙超飞
 * @title :
 * @description :
 * @copyright :
 * @date : 2018-05-22 14:40
 */
@Component
public class UserBo {
    @Resource
    private WxUserInfoService wxUserInfoService;

    public ResponseVo queryUserInfo(Long id){
        ResponseVo res=new ResponseVo();
        WxUserInfoDto wxUserInfoDto = wxUserInfoService.queryUserById(id);
        res.setData(wxUserInfoDto);
        return res;
    }

}
